# To get started with Dependabot version updates, you'll need to specify which
# package ecosystems to update and where the package manifests are located.
# Please see the documentation for all configuration options:
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates

version: 2
updates:
  - package-ecosystem: npm
    directory: "/worker" # Location of package manifests
    schedule:
      interval: "daily"
    rebase-strategy: "disabled" # use dependabot-rebase-stale
    commit-message:
      prefix: chore
      prefix-development: chore
      include: scope
    ignore:
      - dependency-name: "@types/node"
      - dependency-name: "@trpc/*"
    groups:
      sentry:
        patterns:
          - "@sentry/*"
      prisma:
        patterns:
          - "prisma"
          - "@prisma/*"
      next:
        patterns:
          - "eslint-config-next"
          - "next"
      patches:
        update-types:
          - "patch"
  - package-ecosystem: npm
    directory: "/web" # Location of package manifests
    schedule:
      interval: "daily"
    rebase-strategy: "disabled" # use dependabot-rebase-stale
    commit-message:
      prefix: chore
      prefix-development: chore
      include: scope
    ignore:
      - dependency-name: "@types/node"
      - dependency-name: "@trpc/*"
    groups:
      sentry:
        patterns:
          - "@sentry/*"
      prisma:
        patterns:
          - "prisma"
          - "@prisma/*"
      next:
        patterns:
          - "eslint-config-next"
          - "next"
      patches:
        update-types:
          - "patch"
